
package org.springxrsk.modules.classes.wrapper;

import org.springxrsk.core.mp.support.BaseEntityWrapper;
import org.springxrsk.core.tool.utils.BeanUtil;
import org.springxrsk.modules.classes.pojo.entity.QyClassesRoomEntity;
import org.springxrsk.modules.classes.pojo.vo.QyClassesRoomVO;
import java.util.Objects;

/**
 * 教室管理 包装类,返回视图层所需的字段
 *
 *  @author
 * @since 2024-06-15
 */
public class QyClassesRoomWrapper extends BaseEntityWrapper<QyClassesRoomEntity, QyClassesRoomVO>  {

	public static QyClassesRoomWrapper build() {
		return new QyClassesRoomWrapper();
 	}

	@Override
	public QyClassesRoomVO entityVO(QyClassesRoomEntity qyClassesRoom) {
		QyClassesRoomVO qyClassesRoomVO = Objects.requireNonNull(BeanUtil.copyProperties(qyClassesRoom, QyClassesRoomVO.class));

		//User createUser = UserCache.getUser(qyClassesRoom.getCreateUser());
		//User updateUser = UserCache.getUser(qyClassesRoom.getUpdateUser());
		//qyClassesRoomVO.setCreateUserName(createUser.getName());
		//qyClassesRoomVO.setUpdateUserName(updateUser.getName());

		return qyClassesRoomVO;
	}


}
